package com.hq.door.pojo;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;


/**
 * AbstractTParent entity provides the base persistence definition of the TParent entity. @author MyEclipse Persistence Tools
 */
@MappedSuperclass

public abstract class AbstractTParent  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private TStudent TStudent;
     private String name;
     private String code;
     private String weixinId;
     private String password;
     private Timestamp modifiedTime;
     private Integer modifiedBy;
     private String state;	//申请状态
     private String reason;	//申请绑定原因


    // Constructors

    /** default constructor */
    public AbstractTParent() {
    }

	/** minimal constructor */
    public AbstractTParent(String name, String code) {
        this.name = name;
        this.code = code;
    }
    
    /** full constructor */
    public AbstractTParent(TStudent TStudent, String name, String code, String weixinId, String password, Timestamp modifiedTime, Integer modifiedBy) {
        this.TStudent = TStudent;
        this.name = name;
        this.code = code;
        this.weixinId = weixinId;
        this.password = password;
        this.modifiedTime = modifiedTime;
        this.modifiedBy = modifiedBy;
    }

   
    // Property accessors
    @Id @GeneratedValue
    
    @Column(name="id", unique=true, nullable=false)

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="student_id")

    public TStudent getTStudent() {
        return this.TStudent;
    }
    
    public void setTStudent(TStudent TStudent) {
        this.TStudent = TStudent;
    }
    
    @Column(name="name", nullable=false, length=100)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="code", nullable=false, length=30)

    public String getCode() {
        return this.code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
    
    
    @Column(name="state", length=1)
    public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	@Column(name="reason", length=200)
	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	@Column(name="weixin_id", length=100)

    public String getWeixinId() {
        return this.weixinId;
    }
    
    public void setWeixinId(String weixinId) {
        this.weixinId = weixinId;
    }
    
    @Column(name="password", length=100)

    public String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    @Column(name="modified_time", length=19)

    public Timestamp getModifiedTime() {
        return this.modifiedTime;
    }
    
    public void setModifiedTime(Timestamp modifiedTime) {
        this.modifiedTime = modifiedTime;
    }
    
    @Column(name="modified_by")

    public Integer getModifiedBy() {
        return this.modifiedBy;
    }
    
    public void setModifiedBy(Integer modifiedBy) {
        this.modifiedBy = modifiedBy;
    }
   








}